package TP2;

import anaydis.sort.gui.SorterListener;


public class Benchmark implements SorterListener{
    int swaps, comparisons;

    public Benchmark(){
        swaps =0;
        comparisons =0;
    }

    public void swap(int i, int j){
        swaps++;
    }

    public void copy(int i, int j, boolean b){}

    public void box(int i, int j){}

    public void greater(int i, int j){
        comparisons++;
    }

    public void equals(int i, int j){
        comparisons++;
    }

    public int getSwaps(){
        return swaps;
    }

    public int getComparisons(){
        return comparisons;
    }


}
